<extend name="Index:index" />
    <block name="nav1">
        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="#">Admin</a>
            </li>
            <li class="active">后台用户管理</li>
        </ul><!-- .breadcrumb -->
    </block>

    <block name="nav2">
        <h1>
        <a href="<{:U('Auser/index')}>">后台用户管理</a>
        
            <small>
                <i class="icon-double-angle-right"></i>
                权限列表
            </small>
        </h1>
    </block>

    <block name="main">
        <div class="row">
             <table class=" table-bordered h5 tb">
                <tr>
                    <th class="col-md-1">职位名称</th>
                    <th class="col-md-1" >拥有权限</th>
                    <th class="col-md-1">权限介绍</th>
                    <!-- <th class="col-md-1">发布时间</th> -->
                    <!-- <th class="col-md-3" style="text-align:center">新闻内容</th> -->
                    <!-- <th class="col-md-1">新闻所属分类</th> -->
                    <!-- <th class="col-md-1">访问量</th> -->
                    <!-- <th class="col-md-1">操作</th> -->
                </tr>
                
                    <?php if($rname == "超级管理员"): ?>
                        <tr >
                            <!-- <td colspan="2"></td> -->
                            <td><span><{$rname}></span></td>
                            <!-- <td style="display:none" class="awaw"><{$v.id}></td> -->
                            <!-- <td colspan="2"><img src="__PUBLIC__<{$v.cimg}>"></td> -->
                            <td><span>所有权限</span></td>
                            <td><span ><{$remark}></span></td>
                
                        </tr>
                    <?php else: ?>
                        <volist name="p_list" id="v">
                                <tr >
                                <!-- <td colspan="2"></td> -->
                                <td><span><{$rname}></span></td>
                                <!-- <td style="display:none" class="awaw"><{$v.id}></td> -->
                                <!-- <td colspan="2"><img src="__PUBLIC__<{$v.cimg}>"></td> -->
                                <td><span><{$v.name}></span></td>
                                <td><span ><{$remark}></span></td>
                    
                            </tr>
                        </volist>
                    <?php endif ?>
                
                
            </table>
            <!-- <div class="pagelist"><{$page}></div> -->
        </div>

    <script src="__PUBLIC__/js/jquery-2.1.4.min.js"></script>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="__PUBLIC__/js/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="__PUBLIC__/js/bootstrap.min.js"></script>
    <!-- holder引用方法<img src="holder.js/250x250"> -->
    <script src="__PUBLIC__/js/holder.min.js"></script>


    <script>
     function del(id,obj){
            // var id = $('.awaw').html();
            // console.log(id);
             $.ajax({
                url:"<{:U('News/del')}>",
                type: 'post',
                data:{'id':id},
                dataType:'json',
                success:function(data){
                  // $('.img img.selected').remove();
                  // console.log(data);
                  $(obj).parent().parent().remove();
                  alert('删除成功!!');
                }
            })
        // alert('dasdsa');
       }

    </script>

    </block>
